
 $(document).ready(function () {
 
	$("#accountDropdownId").click(function(){	  		
   		$(this).css("outline", "2px solid #ffffff");	
   		//$(this).css("color", "#ffffff"); // S1M-7947
   		$(this).attr("aria-expanded","true");
   	});
	
	$("[id*='locale_dropdown']").click(function(){	  		
   		$(this).css("outline", "2px solid #ffffff");	
   		//$(this).css("color", "#ffffff"); // S1M-7947
   		$(this).attr("aria-expanded","true");
   	});
	
	$("#accountDropdownId").blur(function(){	  		
   		$(this).css("outline", "none");	
   		$(this).attr("aria-expanded","false");
   	});
	
	$("[id*='locale_dropdown']").blur(function(){	  		
   		$(this).css("outline", "none");	
   		$(this).attr("aria-expanded","false");
   	});
	
	$("#selected_option").focus(function(){	  		
   		$(this).css("outline", "2px solid #000000");
   		$(this).css("color", "#000000");
   	});
	$("#selected_option").blur(function(){	  		
   		$(this).css("outline", "none");	
   		$(this).css("color", "#000000");
   		$(this).attr("aria-expanded","false");
   	});
	$("#selected_option").click(function(){	  		
   		$(this).css("outline", "2px solid #ffffff");	
   		$(this).css("color", "#000000");
   		$(this).attr("aria-expanded","true");
   	});
	
	$("#QUICK_SEARCH_HEADER_SEARCH_TEXT").focus(function(){	  		
   		$(this).css("outline", "2px solid #000000");	
   	});
	$("#QUICK_SEARCH_HEADER_SEARCH_TEXT").blur(function(){	  		
   		$(this).css("outline", "none");	
   	});
	$("#btn_search").focus(function(){	  		
   		$(this).css("outline", "2px solid #000000");	
   	});
	$("#btn_search").blur(function(){	  		
   		$(this).css("outline", "none");	
   	});	   	
	$("#headerSearchbar").focus(function(){	  		
   		$(this).css("outline", "2px solid #000000"); /*S1M-7893/ S1M-7947*/	   		   		
   	});	
	$("#headerSearchbar").blur(function(){	  		
   		$(this).css("outline", "none");	   		   		
   	});
	
	$(".nav-link").focus(function(){	  		
   		// find open 'dropdown nav-link' if any and close it TBD
		// Note: bootstrap.js closes previous oppened dropdown when opens the next dropdown
		// but if tab is focus on the next link in menu, which is not with dropdown list,
		// previous oppened remains open
		// the same behaviour is also on prod v4.28.4
   	});
	
	$("#ManageDropdownId").click(function(){	  		
   		$(this).css("outline", "2px solid #ffffff");	
   		//$(this).css("color", "#ffffff"); // S1M-7947
   		$(this).attr("aria-expanded","true");
   	});	
	
	$("#SupportDropdownId").click(function(){	  		
   		$(this).css("outline", "2px solid #ffffff");	
   		//$(this).css("color", "#ffffff"); // S1M-7947
   		$(this).attr("aria-expanded","true");
   	});
	
	$("#ManageDropdownId").blur(function(){	  		
   		$(this).css("outline", "none");	
   		$(this).attr("aria-expanded","false");
   	});
	
	$("#SupportDropdownId").blur(function(){	  		
   		$(this).css("outline", "none");	
   		$(this).attr("aria-expanded","false");
   	});
	
 });
